how to solve integrals using geometry